package com.xinsilu.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xinsilu.hospital.entity.AuthsysRole;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ym
 * @since 2021-11-30
 */
public interface IAuthsysRoleService extends IService<AuthsysRole> {
    List<AuthsysRole> search(String roleName);

    AuthsysRole findById(int rlId);

    AuthsysRole add(AuthsysRole role);

    void deleteRole(int rlId);

    void update(int rlId, AuthsysRole role);

    boolean roleHasMenu(int rlId, int mnId);

    List<Integer> searchMenuRoleIds(String mnName);

    void updateRolePermissions(AuthsysRole role);
}
